package cn.zyl.demo.start;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * 类说明: 启动类
 * 启动方式1-注解：@SpringBootApplication
 * 启动方式2-注解：@Controller @EnableAutoConfiguration @ComponentScan
 * @author wsz
 * @version v1.0
 * @date 2020-07-15
 */
@SpringBootApplication
@MapperScan("cn.zyl.demo.dao")
@ComponentScan(basePackages = {"cn.zyl.demo.api","cn.zyl.demo.dao","cn.zyl.demo.manager","cn.zyl.demo.service","cn.zyl.demo.web"})
public class DemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }
}
